import socket

serverPort = 1314
serverSocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
serverSocket.bind(('', serverPort))
serverSocket.listen(1)

while True:
    connectionSocket, addr = serverSocket.accept()
    sentence = connectionSocket.recv(8092*10240).decode()
    s = 'HTTP/1.1 200 OK\r\n\"\"\r\n'
    connectionSocket.send(s.encode())
    print(sentence)
    connectionSocket.close()
 